﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public class UVLooper : MonoBehaviour
{

    public Vector2 uvSpeed = new Vector2(0,0);
    public bool runInEditor = false;

    // Update is called once per frame
    void Update()
    {
      var material = this.GetComponent<Renderer>().material;
      material.mainTextureOffset += uvSpeed*Time.deltaTime;
    }
}
